//
//  MainTabView.swift
//  animations
//
//  Created by Ekaterina on 10.01.2023.
//

import SwiftUI

struct MainTabView: View {
    var body: some View {
        TabView {
            FirstTabView()
                .badge(2)
                .tabItem {
                    Label("First Page", systemImage: "1.circle")
                }
            SecondTabView()
                .tabItem {
                    Label("Second Page", systemImage: "2.square")
                }
            ThirdTabView()
                .badge("555")
                .tabItem {
                    Label("Third Page", systemImage: "3.circle")
                }
        }
    }
}

struct MainTabView_Previews: PreviewProvider {
    static var previews: some View {
        MainTabView()
    }
}
